﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HRM.Model
{
    public interface IEntityService<T> where T : class
    {
        List<T> GetAll();

        bool Add(T entity);

        bool Update(T entity);

        bool Delete(T entity);

        bool DeleteList(List<T> list);

        List<T> GetPaging(int pageIndex, int pageSize);

        int GetNumberOfPages(int pageSize);
    }
}
